package com.sjp.myspring.utils;

import java.util.Collection;

public class StringUtils {
    public static String lowercaseFirst(String str) {
        char[] chars = str.toCharArray();
        chars[0] += 32;
        return new String(chars);
    }

    public static String[] toStringArray(Collection<String> collection) {
        return collection.toArray(new String[collection.size()]);
    }

    public static boolean isEmpty(String str) {
        return str == null || str.equals("");
    }
}
